import {
  createRouter,
  createWebHashHistory,
  createWebHistory,
} from 'vue-router';
import Overview from '../views/flights/Overview.vue';
import Detail from '../views/flights/Detail.vue';
import Ocean from '../views/ocean/Ocean.vue';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      name: 'PVGHome',
      component: Overview,
      path: '/pvg',
      alias: ['/pvg.html'],
    },
    {
      name: 'Home',
      component: Overview,
      path: '/',
      alias: ['/index.html'],
    },
    {
      name: 'Detail',
      component: Detail,
      path: '/detail',
      alias: ['/index.html/detail'],
    },
    {
      name: 'PVGDetail',
      component: Detail,
      path: '/pvg/detail',
      alias: ['/pvg.html/detail'],
    },
    {
      name: 'Ocean',
      path: '/ocean',
      component: Ocean,
      alias: ['/ocean.html']
    },
  ],
});

export default router;
